import request from '/@/api/request'
/** 获取评论列表 */
export const requestCommentList = (data: CommentTypes.IRequest) => {
  return request.post<IPaginationResponse<CommentTypes.IResponse[]>>('/business/datamarket/comment/page', data)
}

/** 删除评论 */
export const requestDeleteCommentByIds = (id: string) => {
  return request.delete<IPaginationResponse<string>>(`/business/datamarket/comment/${id}`, {})
}

/** 更新显示隐藏 */
export const requestUpdateVisible = (data: { isVisible: boolean; id: string }) => {
  return request.put<IPaginationResponse<string>>('/business/datamarket/comment/visible', data)
}
